<?php

class RoundModel extends BaseModel {

	private $id;
	
	private $name;
	
	private $start;
	
	private $end;
	
	private $ticks;
	
	private $tickTime;
	
	private $currentTick;
	
	private $current;

	public function __construct() {
		$this->current = true;
	}

	public function getId() {
		return $this->id;
	}

	public function setId($value) {
		$this->id = $value;
	}

	public function getName() {
		return $this->name; 
	}

	public function setName($value) {
		$this->name = $value;
	}

	public function getStart() {
		return $this->start; 
	}

	public function setStart($value) {
		$this->start = $value; 
	}

	public function getEnd() {
		return $this->end; 
	}

	public function setEnd($value) {
		$this->end = $value; 
	}

	public function getTicks() {
		return $this->ticks; 
	}

	public function setTicks($value) {
		$this->ticks = $value; 
	}

	public function getTicktime() {
		return $this->tickTime; 
	}

	public function setTicktime($value) {
		$this->tickTime = $value; 
	}

	public function getCurrenttick() {
		return $this->currentTick; 
	}

	public function setCurrenttick($value) {
		$this->currentTick = $value; 
	}

	public function getCurrent() {
		return $this->current; 
	}

	public function setCurrent($value) {
		$this->current = $value; 
	}

	public function toJSONObject() {
		return array(
			'id' => $this->id,	
			'name' => $this->name,	
			'start' => $this->start,	
			'end' => $this->end,	
			'ticks' => $this->ticks,	
			'tickTime' => $this->tickTime,	
			'currentTick' => $this->currentTick,	
			'current' => $this->current
		);
	}
}
?>